package com.example.dakotanews.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("blog")
public class Blog {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer sectionId;
    private String title;
    private String cover;
    private String summary;
    private String content;
    private int supportNum;
    private int oppositionNum;
    private int collectionNum;
    private int pageView;
    private int issueNum;
    private LocalDateTime commitTime;
    private LocalDateTime editTime;
}
